package com.wisdomstar.common.utils;

import com.wisdomstar.common.utils.reflect.ReflectUtils;

/**
 * @author RinMi
 * @since 2023/6/6
 */
public class ClearColumnsUtil {

    private static final String[] FIELD_NAMES = {"createBy", "createTime", "updateBy", "updateTime"};

    public static void clearColumns(Object object) {
        for (String fieldName: FIELD_NAMES){
            ReflectUtils.setFieldValue(object, fieldName, null);
        }
    }

    private ClearColumnsUtil() {}
}
